package br.com.fatecpg.operon.frames;
import br.com.fatecpg.operon.Conexao;
import com.sun.jndi.ldap.Connection;
import com.sun.rmi.rmid.ExecOptionPermission;
import java.beans.Statement;
import java.net.ConnectException;
import java.security.Principal;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.Icon;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;


public class SaladeAulaIFrame extends javax.swing.JInternalFrame {
    ResultSet SalaResultSet=null;

    
    public SaladeAulaIFrame() {
        initComponents();
    try{
        atualizar();

    }catch (SQLException ex){
        JOptionPane.showMessageDialog(this, "Erro: "+ex.getMessage(),
                "Erro",JOptionPane.ERROR_MESSAGE );
        //this.dispose();
    }
    }
    

   //CONEXAO COM O BANCO DE DADOS
    public void atualizar () throws SQLException{
        DefaultTableModel model = (DefaultTableModel) Table_Pesquisa.getModel();
        model.setRowCount(0);
        String sql="SELECT * FROM operon.SALAS_DE_AULA";
        ResultSet rs=Conexao.con.createStatement().executeQuery(sql);
        while(rs.next()){
            model.addRow(new Object[]{
            rs.getInt("SALA_ID"),
            rs.getString("TITULO"),
            rs.getString("TIPO"),
            rs.getString("CAPACIDADE"),
            rs.getString("AREA")
        });
    }}
    /*
    public void popularSalaResultSet() throws SQLException{
        String SQL = "select SALA_ID,TITULO,TIPO,AREA,CAPACIDADE"+"from operon.SALAS_DE_AULA";
        Statement st=Conexao.con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
        SalaResultSet=st.executeQuery(SQL);
        atualizarRegistro();
    }
    public void atualizarRegistro() throws SQLException{
        if(SalaResultSet.isBeforeFirst()||SalaResultSet.isAfterLast()){
            TF_codigo.setText("");
            TF_titulo.setText("");
            TF_tipo.setText("");
            TF_capacidade.setText("");
            TF_area.setText("");
        }else{
              TF_codigo.setText(SalaResultSet.getString("SALA_ID"));
            TF_titulo.setText(SalaResultSet.getString("TITULO"));
            TF_tipo.setText(SalaResultSet.getString("TIPO"));
            TF_capacidade.setText(SalaResultSet.getString("CAPACIDADE"));
            TF_area.setText(SalaResultSet.getString("AREA"));
        }
    } */
    public void pesquisar () throws SQLException{
        DefaultTableModel model = (DefaultTableModel) Table_Pesquisa.getModel();
        model.setRowCount(0);
        String sql="SELECT * FROM operon.SALAS_DE_AULA"+"WHERE TITULO LIKE '%"+TF_pesquisa.getText()+"%'";
        ResultSet rs=Conexao.con.createStatement().executeQuery(sql);
        while(rs.next()){
            model.addRow(new Object[]{
            rs.getInt("SALA_ID"),
            rs.getString("TITULO"),
            rs.getString("TIPO"),
            rs.getString("CAPACIDADE"),
            rs.getString("AREA")
        });
    }}
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        TF_pesquisa = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        jScrollPane1 = new javax.swing.JScrollPane();
        Table_Pesquisa = new javax.swing.JTable();
        Button_Imprimir = new javax.swing.JButton();
        Button_Remover = new javax.swing.JButton();
        Button_Gravar = new javax.swing.JButton();
        Button_Avancar = new javax.swing.JButton();
        Button_Ultimo = new javax.swing.JButton();
        Button_Inicio = new javax.swing.JButton();
        Button_Voltar = new javax.swing.JButton();
        Button_Atualizar = new javax.swing.JButton();
        Button_Novo = new javax.swing.JButton();
        jPanel1 = new javax.swing.JPanel();
        TF_titulo = new javax.swing.JTextField();
        TF_tipo = new javax.swing.JTextField();
        TF_capacidade = new javax.swing.JTextField();
        TF_area = new javax.swing.JTextField();
        TF_codigo = new javax.swing.JTextField();
        L_codigo = new javax.swing.JLabel();
        L_titulo = new javax.swing.JLabel();
        L_tipo = new javax.swing.JLabel();
        L_capacidade = new javax.swing.JLabel();
        L_area = new javax.swing.JLabel();
        Button_Cancelar = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        L_Pesquisa = new javax.swing.JLabel();
        Button_Pesquisar = new javax.swing.JButton();
        jSeparator2 = new javax.swing.JSeparator();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();

        setClosable(true);
        setIconifiable(true);
        setResizable(true);
        setMinimumSize(new java.awt.Dimension(1024, 768));
        setPreferredSize(new java.awt.Dimension(1024, 768));
        addInternalFrameListener(new javax.swing.event.InternalFrameListener() {
            public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {
            }
            public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {
                formInternalFrameOpened(evt);
            }
        });
        getContentPane().setLayout(null);
        getContentPane().add(TF_pesquisa);
        TF_pesquisa.setBounds(270, 70, 330, 20);
        getContentPane().add(jSeparator1);
        jSeparator1.setBounds(90, 290, 740, 10);

        Table_Pesquisa.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Codigo", "Título", "Tipo", "Capacidade", "Area"
            }
        ));
        jScrollPane1.setViewportView(Table_Pesquisa);

        getContentPane().add(jScrollPane1);
        jScrollPane1.setBounds(90, 370, 740, 200);

        Button_Imprimir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/icons/48px-Crystal_Clear_mimetype_ps.png"))); // NOI18N
        Button_Imprimir.setToolTipText("Imprimir Relatório");
        getContentPane().add(Button_Imprimir);
        Button_Imprimir.setBounds(690, 300, 70, 60);

        Button_Remover.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/icons/48px-Crystal_Clear_action_edit_remove.png"))); // NOI18N
        Button_Remover.setToolTipText("Deletar");
        Button_Remover.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_RemoverActionPerformed(evt);
            }
        });
        getContentPane().add(Button_Remover);
        Button_Remover.setBounds(630, 300, 60, 60);

        Button_Gravar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/icons/48px-Crystal_Clear_action_edit_add.png"))); // NOI18N
        Button_Gravar.setToolTipText("Gravar");
        Button_Gravar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_GravarActionPerformed(evt);
            }
        });
        getContentPane().add(Button_Gravar);
        Button_Gravar.setBounds(570, 300, 60, 60);

        Button_Avancar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/icons/48px-Crystal_Clear_action_player_play.png"))); // NOI18N
        getContentPane().add(Button_Avancar);
        Button_Avancar.setBounds(330, 300, 60, 60);

        Button_Ultimo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/icons/48px-Crystal_Clear_action_2rightarrow.png"))); // NOI18N
        getContentPane().add(Button_Ultimo);
        Button_Ultimo.setBounds(270, 300, 60, 60);

        Button_Inicio.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/icons/48px-Crystal_Clear_action_2leftarrow.png"))); // NOI18N
        getContentPane().add(Button_Inicio);
        Button_Inicio.setBounds(210, 300, 60, 60);

        Button_Voltar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/icons/48px-Crystal_Clear_action_1leftarrow.png"))); // NOI18N
        Button_Voltar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_VoltarActionPerformed(evt);
            }
        });
        getContentPane().add(Button_Voltar);
        Button_Voltar.setBounds(150, 300, 60, 60);

        Button_Atualizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/icons/48px-Crystal_Clear_action_reload.png"))); // NOI18N
        Button_Atualizar.setToolTipText("Atualizar Tabela");
        Button_Atualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_AtualizarActionPerformed(evt);
            }
        });
        getContentPane().add(Button_Atualizar);
        Button_Atualizar.setBounds(440, 300, 60, 60);

        Button_Novo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/icons/Crystal_Clear_mimetype_mime_txt.png"))); // NOI18N
        Button_Novo.setToolTipText("Inserir Dados");
        Button_Novo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_NovoActionPerformed(evt);
            }
        });
        getContentPane().add(Button_Novo);
        Button_Novo.setBounds(500, 300, 70, 60);

        jPanel1.setBackground(new java.awt.Color(204, 204, 0));

        TF_titulo.setEditable(false);

        TF_tipo.setEditable(false);

        TF_capacidade.setEditable(false);

        TF_area.setEditable(false);

        TF_codigo.setEditable(false);

        L_codigo.setFont(new java.awt.Font("Arial", 1, 14));
        L_codigo.setText("Código:");

        L_titulo.setFont(new java.awt.Font("Arial", 1, 14));
        L_titulo.setText("Título:");

        L_tipo.setFont(new java.awt.Font("Arial", 1, 14));
        L_tipo.setText("Tipo:");

        L_capacidade.setFont(new java.awt.Font("Arial", 1, 14));
        L_capacidade.setText("Capacidade:");

        L_area.setFont(new java.awt.Font("Arial", 1, 14));
        L_area.setText("Área:");

        Button_Cancelar.setText("Cancelar");
        Button_Cancelar.setEnabled(false);
        Button_Cancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_CancelarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(99, 99, 99)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(Button_Cancelar)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(L_codigo)
                            .addComponent(L_tipo))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(TF_tipo, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(21, 21, 21)
                                .addComponent(L_area)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(TF_area, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(L_capacidade)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(TF_capacidade, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(TF_codigo, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(27, 27, 27)
                                .addComponent(L_titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(TF_titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 318, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap(112, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(32, 32, 32)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(TF_codigo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(L_codigo)
                    .addComponent(TF_titulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(L_titulo, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(L_tipo)
                        .addComponent(TF_tipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(L_area)
                        .addComponent(TF_area, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(L_capacidade)
                        .addComponent(TF_capacidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)
                .addComponent(Button_Cancelar)
                .addContainerGap())
        );

        getContentPane().add(jPanel1);
        jPanel1.setBounds(90, 130, 740, 140);

        jPanel2.setBackground(new java.awt.Color(204, 204, 0));

        L_Pesquisa.setFont(new java.awt.Font("Arial", 1, 12));
        L_Pesquisa.setText("Pesquisar:");

        Button_Pesquisar.setText("Pesquisar");
        Button_Pesquisar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Button_PesquisarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(L_Pesquisa)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 367, Short.MAX_VALUE)
                .addComponent(Button_Pesquisar)
                .addGap(34, 34, 34))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(L_Pesquisa)
                    .addComponent(Button_Pesquisar))
                .addContainerGap())
        );

        getContentPane().add(jPanel2);
        jPanel2.setBounds(180, 60, 562, 40);
        getContentPane().add(jSeparator2);
        jSeparator2.setBounds(90, 110, 740, 10);

        jLabel1.setFont(new java.awt.Font("Arial", 1, 24));
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Sala de Aula");
        getContentPane().add(jLabel1);
        jLabel1.setBounds(400, 10, 170, 50);

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/com/fatecpg/operon/imagens/escola_1024x768.jpg"))); // NOI18N
        getContentPane().add(jLabel2);
        jLabel2.setBounds(0, 0, 920, 740);

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-936)/2, (screenSize.height-660)/2, 936, 660);
    }// </editor-fold>//GEN-END:initComponents

    private void Button_AtualizarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_AtualizarActionPerformed
        try{
            atualizar();
        }catch (SQLException ex){
            JOptionPane.showMessageDialog(this, "Erro: "+ex.getMessage(),"Erro",JOptionPane.ERROR_MESSAGE);
        } 
    }//GEN-LAST:event_Button_AtualizarActionPerformed

    private void Button_GravarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_GravarActionPerformed
        String codigo = TF_codigo.getText();
        String titulo = TF_titulo.getText();
        String tipo = TF_tipo.getText();
        String area = TF_area.getText();
        String capacidade = TF_capacidade.getText();
        
        
        String SQL="INSERT INTO operon.SALAS_DE_AULA VALUES("+codigo+",'"+titulo+"','"+tipo+"','"+area+"','"+capacidade+"')";
        try{
            Conexao.con.createStatement().execute(SQL);
            this.dispose();
        
        }catch (SQLException ex){
            JOptionPane.showMessageDialog(this, "0 registro não pode ser inserido. Erro: "+ex.getMessage(),"Erro",JOptionPane.ERROR_MESSAGE);
        } 
    }//GEN-LAST:event_Button_GravarActionPerformed

    private void formInternalFrameOpened(javax.swing.event.InternalFrameEvent evt) {//GEN-FIRST:event_formInternalFrameOpened
        //   CarregarDados();
    }//GEN-LAST:event_formInternalFrameOpened

    private void Button_VoltarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_VoltarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_Button_VoltarActionPerformed

    private void Button_NovoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_NovoActionPerformed
        TF_codigo.setEditable(true);
        TF_titulo.setEditable(true);
        TF_tipo.setEditable(true);
        TF_area.setEditable(true);
        TF_capacidade.setEditable(true);
        Button_Cancelar.setEnabled(true);
    }//GEN-LAST:event_Button_NovoActionPerformed

    private void Button_CancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_CancelarActionPerformed
         TF_codigo.setEditable(false);
        TF_titulo.setEditable(false);
        TF_tipo.setEditable(false);
        TF_area.setEditable(false);
        TF_capacidade.setEditable(false);
         Button_Cancelar.setEnabled(false);
         TF_codigo.setText("");
         TF_titulo.setText("");
        TF_tipo.setText("");
        TF_area.setText("");
        TF_capacidade.setText("");
    }//GEN-LAST:event_Button_CancelarActionPerformed

    private void Button_RemoverActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_RemoverActionPerformed
        if (Table_Pesquisa.getSelectedRow()>=0){
            String código = Table_Pesquisa.getValueAt(Table_Pesquisa.getSelectedRow(),0).toString();
        if(JOptionPane.showConfirmDialog(this, "Confirma exclusão do registro"+código)==JOptionPane.YES_OPTION){
            String SQL="DELETE FROM operon.SALAS_DE_AULA WHERE SALA_ID="+código;
        try{
            Conexao.con.createStatement().execute(SQL);
            this.atualizar();
        }catch (SQLException ex){
            JOptionPane.showMessageDialog(this, "0 registro não pode ser excluido. Erro: "+ex.getMessage(),"Erro",JOptionPane.ERROR_MESSAGE);
        }}
        }

    }//GEN-LAST:event_Button_RemoverActionPerformed

    private void Button_PesquisarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Button_PesquisarActionPerformed
           try{
        pesquisar();

    }catch (SQLException ex){
        JOptionPane.showMessageDialog(this, "Erro: "+ex.getMessage(),
                "Erro",JOptionPane.ERROR_MESSAGE );
        this.dispose();
    }
    
    }//GEN-LAST:event_Button_PesquisarActionPerformed

 

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Button_Atualizar;
    private javax.swing.JButton Button_Avancar;
    private javax.swing.JButton Button_Cancelar;
    private javax.swing.JButton Button_Gravar;
    private javax.swing.JButton Button_Imprimir;
    private javax.swing.JButton Button_Inicio;
    private javax.swing.JButton Button_Novo;
    private javax.swing.JButton Button_Pesquisar;
    private javax.swing.JButton Button_Remover;
    private javax.swing.JButton Button_Ultimo;
    private javax.swing.JButton Button_Voltar;
    private javax.swing.JLabel L_Pesquisa;
    private javax.swing.JLabel L_area;
    private javax.swing.JLabel L_capacidade;
    private javax.swing.JLabel L_codigo;
    private javax.swing.JLabel L_tipo;
    private javax.swing.JLabel L_titulo;
    private javax.swing.JTextField TF_area;
    private javax.swing.JTextField TF_capacidade;
    private javax.swing.JTextField TF_codigo;
    private javax.swing.JTextField TF_pesquisa;
    private javax.swing.JTextField TF_tipo;
    private javax.swing.JTextField TF_titulo;
    private javax.swing.JTable Table_Pesquisa;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    // End of variables declaration//GEN-END:variables

}
